package cn.tedu.egweibo.controller;

import cn.tedu.egweibo.conmon.response.JsonResult;
import cn.tedu.egweibo.mapper.UserMapper;
import cn.tedu.egweibo.pojo.vo.UserVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Api(tags = "用户模块")
@RestController
@RequestMapping("/v1/users/")
public class UserController {
    @Autowired
    public UserMapper userMapper;
    @GetMapping("select")
    @ApiOperation(value = "用户查询")
    public JsonResult select(Long id){
        log.debug("id="+id);
        return JsonResult.ok(userMapper.select());
    }
}
